#ifndef MYTCPSOCKET_H
#define MYTCPSOCKET_H

#include "protocol.h"
#include "opendb.h"
#include <QTcpSocket>
#include <QSqlQuery>

class myTcpSocket : public QTcpSocket
{
    Q_OBJECT
public:
    myTcpSocket();
    QString getStrName();

signals:
    void clientOff(myTcpSocket* mySocket);

public slots:
    void recvMsg();
    void clientOffLine();


private:
    QString m_strName;

};

#endif // MYTCPSOCKET_H
